﻿using Microsoft.EntityFrameworkCore;
using PMP.Models;
using PMP.Models.ViewModel;

namespace PMP.Data
{
    public partial class PMPContext : DbContext
    {
        public PMPContext(DbContextOptions<PMPContext> options)
            : base(options)
        {
        }
    }
    //存放实体
    public partial class PMPContext : DbContext
    {
        public DbSet<Question> Question { get; set; }
        public DbSet<Daily> Daily { get; set; }
        public DbSet<Option> Option { get; set; }
        public DbSet<Exam> Exam { get; set; }
        public DbSet<Quest> Quest { get; set; }
        public DbSet<ExamQuestRel> ExamQuestRel { get; set; }

    }

    //存放视图
    public partial class PMPContext : DbContext
    {
        public DbSet<ViewExamQuest> ViewExamQuest { get; set; }
    }
}
